package zhtt02;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhtt on 2016/10/30.
 */
@RestController
@RequestMapping("/user2")
public class User02Controller {

    @RequestMapping("/{id}")
    private String view(@PathVariable("id") String id) {
        return id;
    }
}
